package September27;

import java.time.DayOfWeek;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Calendar;

public class ExamSchedule {
    public static void main(String[] args) {
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd hh时");
        for (int month = 1; month <= 12; month++) {
            LocalDate firstDayOfMonth = LocalDate.of(LocalDate.now().getYear(), month, 1);
            int daysToSaturday = (int) (7 - firstDayOfMonth.getDayOfWeek().getValue() + 2) % 7;
            LocalDate examDate = firstDayOfMonth.plusDays(daysToSaturday + 7);
            String examTime = examDate.format(formatter) + "00";
            System.out.println("考试时间：" + examTime);
        }
    }
}
